using System;
using System.IO;
using Hive.Core.Common.Shell;

namespace Hive.Core.Model.Commands
{
    /// <summary>
    /// Builds a package branch.
    /// </summary>
    public class BuildPackageBranchCommand : BasePackageBranchCommand
    {
        /// <inheritdoc />
        protected override CommandExitCode ExecuteWithPackageBranch(IHiveManager hiveManager, IShell shell, IPackageBranch packageBranch)
        {
            packageBranch.Build(shell);

            return CommandExitCode.Success;
        }
    }
}